﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Controls;
using System.Windows;
using MOJsdk;

namespace UtorrentPlugin
{
    public class UtorrentPlugin : IPlugIn
    {
        public string PluginDeveloper { get { return "Davidblkx"; } }
        public string PluginVersion { get { return "0.1"; } }
        public string PluginName { get { return "UtorrentPlugin"; } }
        public string PluginWeb { get { return "http://moj.codeplex.com"; } }
        public string PluginDescription { get { return "Import movies from utorrent"; } }
        public IEnumerable<string> LinkedFiles
        { get { return new List<string>(); } }

        public void Inicialize()
        {
            MojToolButton btn = new MojToolButton("U", "UtorrentPlugin_toolButton", "Check for new movies", null);
            btn.Click += ButtonClicked;
            btn.AddLogicStatment(MojToolButtonShowCondition.IPanel_MovieBrowser);
            MojHost.GetHost.ToolButtonCollection.Add(btn);
        }
        public void Install()
        {

        }
        public void Unistall()
        {

        }
        public void Dispose()
        {

        }

        private void ButtonClicked(object sender, RoutedEventArgs e)
        {
            MojHost.GetHost.ShowMessage("Plugin is working", "Sucess");
        }
    }
}
